package 练习;

import java.time.LocalDate;
import java.time.chrono.ChronoLocalDate;
import java.time.temporal.ChronoUnit;

public class Test4 {
    public static void main(String[] args) {
        //计算自己活了多少天
        LocalDate l1=LocalDate.of(2006,3,13);
        LocalDate l2=LocalDate.now();
        long days= ChronoUnit.DAYS.between(l1,l2);
        System.out.println(days);
    }
}
